package com.example.restful.api;

import lombok.Data;

/**
 * Copyright(C), 2020-2021, AmbroseCdMeng
 * FileName:    ExceptionMsg
 * Author:      AmbroseCdMeng
 * Date:        2021/2/116:30
 * Description: 实现响应的枚举类
 * History:
 * <author>     <time>      <version>       <desc>
 * 作者姓名     修改时间        版本号           描述
 */
public enum ExceptionMsg {
    SUCCESS("200", "操作成功"),
    FAILED("999", "操作失败");

    private ExceptionMsg(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private String code;
    private String msg;

    public String getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.msg;
    }
}
